﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopTaohuaSearchItem")]
    public class TaohuaSearchItem : BaseObject
    {
        //begin
        public TaohuaSearchItem()
        {}
        public TaohuaSearchItem(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private long _Favorite;
        public long Favorite
        {
            get
            {
                return _Favorite;
            }
            set
            {
                SetPropertyValue("Favorite", ref _Favorite, value);
            }
        }
        private string _Author;
        public string Author
        {
            get
            {
                return _Author;
            }
            set
            {
                SetPropertyValue("Author", ref _Author, value);
            }
        }
        private string _PublishDate;
        public string PublishDate
        {
            get
            {
                return _PublishDate;
            }
            set
            {
                SetPropertyValue("PublishDate", ref _PublishDate, value);
            }
        }
        private string _Publisher;
        public string Publisher
        {
            get
            {
                return _Publisher;
            }
            set
            {
                SetPropertyValue("Publisher", ref _Publisher, value);
            }
        }
        private string _ItemId;
        public string ItemId
        {
            get
            {
                return _ItemId;
            }
            set
            {
                SetPropertyValue("ItemId", ref _ItemId, value);
            }
        }
        private string _RootCateId;
        public string RootCateId
        {
            get
            {
                return _RootCateId;
            }
            set
            {
                SetPropertyValue("RootCateId", ref _RootCateId, value);
            }
        }
        private string _PicUrl;
        public string PicUrl
        {
            get
            {
                return _PicUrl;
            }
            set
            {
                SetPropertyValue("PicUrl", ref _PicUrl, value);
            }
        }
        private string _Title;
        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                SetPropertyValue("Title", ref _Title, value);
            }
        }
        private string _TwoLevelName;
        public string TwoLevelName
        {
            get
            {
                return _TwoLevelName;
            }
            set
            {
                SetPropertyValue("TwoLevelName", ref _TwoLevelName, value);
            }
        }
        private string _Suffix;
        public string Suffix
        {
            get
            {
                return _Suffix;
            }
            set
            {
                SetPropertyValue("Suffix", ref _Suffix, value);
            }
        }
        private string _Description;
        [Size(SizeAttribute.Unlimited)]
        public string Description
        {
            get
            {
                return _Description;
            }
            set
            {
                SetPropertyValue("Description", ref _Description, value);
            }
        }
        private string _ShopTitle;
        public string ShopTitle
        {
            get
            {
                return _ShopTitle;
            }
            set
            {
                SetPropertyValue("ShopTitle", ref _ShopTitle, value);
            }
        }
        private string _SellerId;
        public string SellerId
        {
            get
            {
                return _SellerId;
            }
            set
            {
                SetPropertyValue("SellerId", ref _SellerId, value);
            }
        }
        private string _SellerNick;
        public string SellerNick
        {
            get
            {
                return _SellerNick;
            }
            set
            {
                SetPropertyValue("SellerNick", ref _SellerNick, value);
            }
        }
        private decimal _Price;
        public decimal Price
        {
            get
            {
                return _Price;
            }
            set
            {
                SetPropertyValue("Price", ref _Price, value);
            }
        }
        private long _DocPages;
        public long DocPages
        {
            get
            {
                return _DocPages;
            }
            set
            {
                SetPropertyValue("DocPages", ref _DocPages, value);
            }
        }
        private long _ViewCount;
        public long ViewCount
        {
            get
            {
                return _ViewCount;
            }
            set
            {
                SetPropertyValue("ViewCount", ref _ViewCount, value);
            }
        }
        private long _SellCount;
        public long SellCount
        {
            get
            {
                return _SellCount;
            }
            set
            {
                SetPropertyValue("SellCount", ref _SellCount, value);
            }
        }
        private string _Size;
        public string Size
        {
            get
            {
                return _Size;
            }
            set
            {
                SetPropertyValue("Size", ref _Size, value);
            }
        }
        private TaohuaSearchItems _TaohuaSearchItems;
        [Association("TaohuaSearchItemsTaohuaSearchItems", typeof(TaohuaSearchItems))]
        public TaohuaSearchItems TaohuaSearchItems
        {
            get
            {
                return _TaohuaSearchItems;
            }
            set
            {
                SetPropertyValue("TaohuaSearchItems", ref _TaohuaSearchItems, value);
            }
        }
        //end

    }
}
